package com.yckj.lawyermanager.dongao.mapper;

import com.yckj.lawyermanager.dongao.entity.Lawyer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 律师档案操作：创建、修改、查询、删除
 * @author liruiqi
 */
@Mapper
public interface LawyerMapper {
    /**
     * 删除律师
     * @param lawyerid
     * @return
     */

    public int deleteLawyer(int lawyerid);
    /**
     *   查询所有律师
     * @return 律师集合
     */
    public List<Lawyer> selectLawyer();
    /**
     * 添加律师（创建律师档案）
     * @param lawyer 包含律师信息的对象
     * @return 创建成功返回1，否则返回0
     */

    public int insertLawyer (Lawyer lawyer);
}
